import numpy as np
import matplotlib.pyplot as plt
import os

pwd = os.getcwd()
out = open(pwd+'/gp_neb.txt','w')

neb = np.load('gp_neb.npy')
for i,E in enumerate(neb):
    line = '%i\t%f\n'%(i,E)
    out.write(line)
out.close()

f = plt.figure()
plt.plot(neb, 'k.', markersize=10)
plt.plot(neb, 'k--', markersize=1)
plt.ylabel('gp energy (eV)')
plt.xlabel('image number')
f.savefig('gp_neb.pdf')
